import { createBrowserRouter} from "react-router-dom";
import Index from '../pages/index/Index'
import Other from '../pages/other/Other'
import Layout from '../pages/layout/Layout'
import Menu1 from '../pages/layout/menuFuncation/Index'
import Menu2 from '../pages/layout/menuClass/Index'
import NotFound from "../pages/notFount/Index";
const router =createBrowserRouter([
    {
        path:'/',
        element: <Layout />,
       
        meat:{
            title: '根目录'
        },
        children:[
            {
                index: true,
                element: <Menu2 />
            },
            {
                path:'/menuFuncation',
                element: <Menu1/>
            },
            {
                path: '/menuClass',
                element: <Menu2 />
            },
        ]
    },
    {
        path: '/index',
        element: <Index />
    },
    {
        path: '/other',
        element: <Other/>
    },
    {
        path: '*',
        element: <NotFound />,
    },
])
export default router
